

set(CMAKE_PREFIX_PATH "D:/WorkEnv/Qt/5.15.2/msvc2019_64")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5 COMPONENTS
    Core
    Widgets
    OpenGL
    REQUIRED
)

add_executable(QtOpenGL main.cpp
    MainWin.cpp
    MainWin.hpp
    MainWin.ui
    core/SceneViewer.cpp
    core/SceneViewer.hpp
)
target_link_libraries(QtOpenGL
    Qt5::Core
    Qt5::Widgets
    Qt5::OpenGL
)